
    <div class="layui-form" lay-filter="dev-page-form" style="padding: 20px 30px 0 0;">
        <div class="layui-form-item" style="display: none;">
            <div class="layui-input-inline">
                <script type="text/html" template>
                    <input type="hidden" name="PageID" value="{{ d.params.PageID || '' }}">
                    <input type="hidden" name="ParentID" value="{{ d.params.ParentID || '' }}">
                    <input type="hidden" name="OS" value="{{ d.params.OS || '' }}">
                    <input type="hidden" name="PageType" value="{{ d.params.PageType!=null ?d.params.PageType:'' }}">
                </script>
            </div>
        </div>
        
        <script type="text/html" template lay-url="/Admin/getPageSelect"
                lay-data="{order: 'OrderNo', SearchWhere: JSON.stringify([{ searchValue: 'module,os', compare: 'PageType',condition:'inchar' }])}"
                lay-type="post" lay-done="layui.form.render('select', 'dev-page-form')">
            {{#  if(d.params.PageType=='page'||d.params.PageType=='module'){ }}
            <div class="layui-form-item">
                <label class="layui-form-label">{{layui.admin.setFormSelectTitleLang('dev-page-form','ParentID')||''}}</label>
                <div class="layui-input-block">
                    <select name="ParentID" {{#  d.params.PageType=='page'?'lay-verify="selected"':'' }} lay-vertype="tips">
                        <option value="">{{layui.admin.setFormSelectLang('dev-page-form','ParentID')||''}}</option>
                        {{#  layui.each(d.data, function(index, item){ }}
                        <option value="{{ item.PageID }}" {{d.params.ParentID==item.PageID?"selected":''}} {{d.params.PageID==item.PageID?"disabled":''}}>{{ item['PageName'+layui.admin.lang] }}</option>
                        {{#  }); }}
                    </select>
                </div>
            </div>
            {{#  } }}
        </script>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <input type="text" name="PageName" placeholder="" value="{{ d.params.PageName || '' }}" lay-verify="required" lay-vertype="tips" maxlen="50" autocomplete="off" class="layui-input" />
                </script>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <input type="text" name="PageName_EN" placeholder="" value="{{ d.params.PageName_EN || '' }}" lay-verify="required" lay-vertype="tips" maxlen="100" autocomplete="off" class="layui-input" />
                </script>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <input type="text" name="Sign" placeholder="" value="{{ d.params.Sign || '' }}" lay-verify="fillRequired" lay-vertype="tips" maxlen="50" autocomplete="off" class="layui-input" />
                </script>
            </div>
        </div>

        <script type="text/html" template>
            {{#  if(d.params.PageType=='page'){ }}
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">
                        {{layui.admin.setFormSelectTitleLang('dev-page-form','TemplateUrl')||''}}
                    </label>
                    <div class="layui-input-inline">
                        <select name="TemplateUrl">
                            <option value="">{{layui.admin.setFormSelectLang('dev-page-form','TemplateUrl')||''}}</option>
                            {{#  layui.admin.getDataParams('page-templateUrl', function(data){layui.each(data,function(idx,item){
                            }}
                            <option value="{{ item.Member }}" {{d.params.TemplateUrl==item.Member?"selected":''}}>{{ item['MemberName'+layui.admin.lang] }}</option>
                            {{#  })}) }}
                        </select>
                    </div>
                </div>
            </div>
            {{#  } }}
        </script>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <input type="text" name="PageUrl" placeholder="" value="{{ d.params.PageUrl || '' }}" lay-verify="fillRequired" lay-vertype="tips" maxlen="200" autocomplete="off" class="layui-input" />
                </script>
            </div>
        </div>
        <!--<div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-block">
            <script type="text/html" template>
                <input type="text" name="ActionUrl" placeholder="" value="{{ d.params.ActionUrl || '' }}" lay-verify="fillRequired" lay-vertype="tips" maxlen="100" autocomplete="off" class="layui-input" />
            </script>
        </div>
    </div>-->
        <script type="text/html" template>
            {{#  if(d.params.PageType=='area'){ }}
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label"></label>
                    <div class="layui-input-inline">
                        <input type="text" name="AreaCols" placeholder="" value="{{ d.params.AreaCols || '' }}" lay-verify="required|int" lay-vertype="tips" minval="1" maxval="99999" autocomplete="off" class="layui-input" />
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">
                        {{layui.admin.setFormSelectTitleLang('dev-page-form','AreaType')||''}}
                    </label>
                    <div class="layui-input-inline">
                        <select name="AreaType" lay-verify="selected" lay-vertype="tips">
                            <option value="">{{layui.admin.setFormSelectLang('dev-page-form','AreaType')||''}}</option>
                            {{#  layui.admin.getDataParams('page-areaType', function(data){layui.each(data,function(idx,item){ }}
                            <option value="{{ item.Member }}" {{d.params.AreaType==item.Member?"selected":''}}>{{ item['MemberName'+layui.admin.lang] }}</option>
                            {{#  })}) }}
                        </select>
                    </div>
                </div>
            </div>
            {{#  } }}
        </script>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">
                    <script type="text/html" template>
                        {{layui.admin.setFormSelectTitleLang('dev-page-form','PageIcon')||''}}
                    </script>
                </label>
                <div class="layui-input-inline">
                    <script type="text/html" template>
                        <select name="PageIcon">
                            <option value="">{{layui.admin.setFormSelectLang('dev-page-form','PageIcon')||''}}</option>
                            {{#  layui.admin.getDataParams('page-pageIcon', function(data){layui.each(data,function(idx,item){ }}
                            <option value="{{ item.Member }}" {{d.params.PageIcon==item.Member?"selected":''}}>{{ item['MemberName'+layui.admin.lang] }}</option>
                            {{#  })}) }}
                        </select>
                    </script>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline">
                    <script type="text/html" template>
                        <input type="text" name="OrderNo" placeholder="" value="{{ d.params.OrderNo || '' }}" lay-verify="int" lay-vertype="tips" minval="1" maxval="99999" autocomplete="off" class="layui-input" />
                    </script>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <textarea name="Remarks" placeholder="" lay-verify="fillRequired" lay-vertype="tips" maxlen="200" autocomplete="off" class="layui-textarea">{{ d.params.Remarks || '' }}</textarea>
                </script>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <input type="checkbox" name="IsHide" lay-skin="switch" {{d.params.IsHide==1?'checked':''}}>
                </script>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline">
                <input type="button" lay-submit lay-filter="dev-page-form-submit" value="确认" class="layui-btn layui-btn-default">
            </div>
        </div>
    </div>